﻿using JustWPFControls.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace JustWPFControls.Controls
{
    public class JIconButton:Button
    {
        public IconType Icon
        {
            get { return (IconType)GetValue(IconProperty); }
            set { SetValue(IconProperty, value); }
        }

        public static readonly DependencyProperty IconProperty;

        static JIconButton()
        {
            IconProperty = DependencyProperty.Register("Icon", typeof(IconType), typeof(JIconButton), new PropertyMetadata(IconType.None));
            DefaultStyleKeyProperty.OverrideMetadata(typeof(JIconButton), new FrameworkPropertyMetadata(typeof(JIconButton)));
        }
    }
}
